﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Scaffolding.Metadata;
using RBAC.Domain;
using Swork03_28.Domain.RBAC;
using Swork03_28.Domain.TraceableInfos;

namespace RBAC.Repository
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options) { }

        public DbSet<UserInfo> UserInfo { get; set; }

        #region 省市区
        public DbSet<ProVicnce> ProVicnce { get; set; }
        public DbSet<Citys> Citys { get; set; }
        public DbSet<District> District { get; set; }
        #endregion

        #region 角色模块
        public DbSet<Roles> Roles { get; set; }
        public DbSet<UserRole> UserRole { get; set; }
        #endregion

        #region 菜单模块
        public DbSet<MenuInfo> MenuInfo { get; set; }
        #endregion

        #region 角色权限
        public DbSet<RoleMenuDetail> RoleMenuDetail { get; set; }
        #endregion

        #region 溯源管理
        public DbSet<GoodsInfo> GoodsInfo { get; set; }
        public DbSet<Traceables> Traceables { get; set; }
        #endregion

        #region 养殖信息
        public DbSet<Farmed> Farmed { get; set; }
        public DbSet<Vaccine> Vaccine { get; set; }
        public DbSet<FirmInfo> FirmInfo { get; set; }
        #endregion

        #region 屠宰信息表
        public DbSet<Slaughter> Slaughter { get; set; }
        #endregion

        #region 深加工
        public DbSet<DeepProcess> DeepProcess { get; set; }
        public DbSet<SupplierInfo> SupplierInfo { get; set; }
        #endregion

    }
}
